package cn.wk.dto;

import cn.wk.domain.Employee;
import cn.wk.domain.Tenant;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

public class TenantEnteringDto {
    //机构
    @Valid
    private Tenant tenant;
    //员工
    @Valid
    private Employee employee;
    //套餐id
    @NotNull(message = "必须选择套餐id")
    private Long mealId;
    //确认密码
    @NotEmpty(message = "必须输入密码")
    private String comfirmPassword;

    public Tenant getTenant() {
        return tenant;
    }

    public void setTenant(Tenant tenant) {
        this.tenant = tenant;
    }

    public Employee getEmployee() {
        return employee;
    }

    public void setEmployee(Employee employee) {
        this.employee = employee;
    }

    public Long getMealId() {
        return mealId;
    }

    public void setMealId(Long mealId) {
        this.mealId = mealId;
    }

    public String getComfirmPassword() {
        return comfirmPassword;
    }

    public void setComfirmPassword(String comfirmPassword) {
        this.comfirmPassword = comfirmPassword;
    }

    @Override
    public String toString() {
        return "TenantEnteringDto{" +
                "tenant=" + tenant +
                ", employee=" + employee +
                ", mealId='" + mealId + '\'' +
                ", comfirmPassword='" + comfirmPassword + '\'' +
                '}';
    }
}
